package collection

import "soluty.cc/go/godash/types"

func ForEachRight(array []T, iteratee types.Predicate) {
	for index := len(array) - 1; index >= 0; index-- {
		if !iteratee(array[index], index, array) {
			return
		}
	}
}
